Upload Objects To Bucket
AutomatR.AWS.Activities.UploadBucketObjects
The "Upload Objects To Bucket" activity in AutomatR is part of the AWS Simple Storage Service (S3) activities package, designed to facilitate the bulk upload of objects to a specified S3 bucket. This activity streamlines the process of transferring local files and directories to an S3 bucket, enhancing the efficiency of automation workflows.
Properties
Name | Description |
---|---|
Input | |
Access Key ID | Provides the encrypted access key ID for your AWS account, enabling connection to the Amazon S3 service. String variables containing the access key ID. |
Bucket Name | Specifies the name of the S3 bucket to which objects will be uploaded. String variables containing the bucket name. |
Path | Provides the full paths of the objects that you want to upload from your local system to the bucket. You can provide the paths as a List<string> variable. Example: new List<string> {"D:/uploadobject/uploadobj.zip","D:/uploadobject1/uploadobj1.docx"} |
Region | Specifies the Amazon S3 region associated with the source bucket, which is needed for uploading the object. RegionEndpoint variables containing the AWS region. |
Secret Access Key | Provides the encrypted secret access key ID for your AWS account, enabling connection to the Amazon S3 service. String variables containing the secret access key. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Upload Objects To Bucket" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
How to use:
- Drag and drop the "Upload Objects To Bucket" activity onto the workflow.
- Configure the properties by providing the access key ID, secret access key, region, bucket name, path, and optional delay.
- Execute the workflow to upload the specified objects from the local system to the specified S3 bucket.
Example: Consider an example where the "Upload Objects To Bucket" activity is used to upload multiple objects (files and directories) to an S3 bucket named "MyBucket":
Upload Objects To Bucket:
Display Name: "Upload Files to S3"
Access Key ID: "{YourAccessKey}"
Secret Access Key: "{YourSecretKey}"
Region: "us-east-1"
Bucket Name: "MyBucket"
Path: {"D:/uploadobject/uploadobj.zip", "D:/uploadobject1/uploadobj1.docx"}
In this example, the activity uploads the specified objects from the local system to the "MyBucket" S3 bucket in the "us-east-1" region. The paths of the objects are provided in the List<string>
variable "Path." The operation details can be further captured based on the requirements of the workflow.